import request from '@/utils/request'

export function updateDevice(data) {
  return request({
    url: '/api/device/deviceInfo/maintaining',
    method: 'post',
    data
  })
}

export function getDeviceInfo(params) {
  return request({
    url: '/api/device/deviceInfo/info',
    method: 'get',
    params
  })
}

export function getDevices(params) {
  return request({
    url: 'api/device/deviceInfo/devices',
    method: 'get',
    params
  })
}